package com.app.controller;

import com.app.model.response.RetStatus;
import com.app.service.FocusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Campus com.app.controller
 *
 * @author Lichaojie
 * @version 2018/5/8 21:39
 */
@RestController
@RequestMapping
public class FocusController {

	@Autowired
	private FocusService focusService;

	@RequestMapping(value = "/focus",method = RequestMethod.POST)
	public RetStatus doFocus(@RequestBody String parameter){
		return focusService.doFocus(parameter);
	}

	@RequestMapping(value = "/focus",method = RequestMethod.DELETE)
	public RetStatus cancelFocus(@RequestBody String parameter){
		return focusService.cancelFocus(parameter);
	}
}
